/*
 * @Desc:
 * @Version: v1.00
 * @Author: went
 * @Date: 2021-12-01 14:32:01
 * @LastEditors: went
 * @LastEditTime: 2023-05-30 10:53:21
 */

/**
 * 动态添加路由
 * author:qlx
 */

import { Module } from "vuex";
import { ICommonState } from "./types";

const common: Module<ICommonState, any> = {
  namespaced: true,
  state: {
    microProps: {},
    collapse:false
   },
  getters: {},
  mutations: {
    /**
     *
     * @param {*} state
     * @param {*} props  
     */
    setMicroProps(state, props) {
      state.microProps = JSON.parse(JSON.stringify(props));
    },
  },
  actions: {

  },
};
export default common;
